package com.design.strategy.template.course;

public class JavaCourse extends AbstarctCourse {

    private boolean needCheckHomeWork = false;

    public void setNeedCheckHomeWork(boolean needCheckHomeWork) {
        this.needCheckHomeWork = needCheckHomeWork;
    }

    @Override
    public boolean needCheckHomeWork() {
        return this.needCheckHomeWork;
    }

    @Override
    protected void checkHomeWork() {
        System.out.println("检查Java 作业");
    }
}
